/**
 * @author zxs
 * @since 2021/4/21
 */
public class FieldHasNoPolymorphic {
    static class Father {
        public int money = 1;

        static {
            System.out.println("father static");
        }

        {
            System.out.println("father not static ");
        }

        public Father() {
            System.out.println("father constructor " + money);
        }
    }

    static class Son extends Father {
        static {
            System.out.println("son static");
        }

        {
            System.out.println("son not static ");
        }
        int money = 3;
        public Son() {
            System.out.println("son constructor " + money);
        }
    }

    public static void main(String[] args) {
        Father gay = new Son();
    }
}
